package com.cqcet.wenchuang.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 收藏
 */
@Data
@ApiModel(value = "收藏实体类")
public class Collection implements Serializable {
    //序列化版本号
    private static final long serialVersionUID = 1L;

    //主键，自动生成
    @ApiModelProperty(value = "ID")
    private Long id;

    //用户id
    @ApiModelProperty(value = "用户id")
    private Long userId;

    //商品id
    @ApiModelProperty(value = "商品id")
    private Long goodsId;

    //商家id
    @ApiModelProperty(value = "商家id")
    private Long AdminId;

    //逻辑删除，0删除
    @TableLogic(value = "1", delval = "0")
    @ApiModelProperty(value = "逻辑删除标识:0删除,1未删除")
    private Integer isDelete;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @TableField(fill = FieldFill.INSERT)
    private Long createUser;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Long updateUser;
}
